package com.dianping.cat.configuration.web.url.entity;

import com.dianping.cat.configuration.web.url.BaseEntity;
import com.dianping.cat.configuration.web.url.IVisitor;








public class PatternItem
  extends BaseEntity<PatternItem>
{
  private String m_group;
  private String m_name;
  private String m_pattern;
  private String m_domain;
  private int m_id;

  public PatternItem() {}

  public PatternItem(String name) { this.m_name = name; }




  public void accept(IVisitor visitor) { visitor.visitPatternItem(this); }



  public boolean equals(Object obj) {
/*  34 */     if (obj instanceof PatternItem) {
/*  35 */       PatternItem _o = (PatternItem)obj;

/*  37 */       if (!equals(getName(), _o.getName())) {
/*  38 */         return false;
      }

/*  41 */       return true;
    }

/*  44 */     return false;
  }


/*  48 */   public String getDomain() { return this.m_domain; }



/*  52 */   public String getGroup() { return this.m_group; }



/*  56 */   public int getId() { return this.m_id; }



/*  60 */   public String getName() { return this.m_name; }



/*  64 */   public String getPattern() { return this.m_pattern; }


/*     */




  public void mergeAttributes(PatternItem other) {
    assertAttributeEquals(other, "pattern-item", "name", this.m_name, other.getName());

/*  80 */     if (other.getGroup() != null) {
/*  81 */       this.m_group = other.getGroup();
    }

/*  84 */     if (other.getPattern() != null) {
/*  85 */       this.m_pattern = other.getPattern();
    }

/*  88 */     if (other.getDomain() != null) {
/*  89 */       this.m_domain = other.getDomain();
    }

/*  92 */     this.m_id = other.getId();
  }

  public PatternItem setDomain(String domain) {
/*  96 */     this.m_domain = domain;
/*  97 */     return this;
  }

  public PatternItem setGroup(String group) {
/* 101 */     this.m_group = group;
/* 102 */     return this;
  }

  public PatternItem setId(int id) {
/* 106 */     this.m_id = id;
/* 107 */     return this;
  }

  public PatternItem setName(String name) {
/* 111 */     this.m_name = name;
/* 112 */     return this;
  }

  public PatternItem setPattern(String pattern) {
/* 116 */     this.m_pattern = pattern;
/* 117 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/configuration/web/url/entity/PatternItem.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */